<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('案件信息列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <p>案件编号：</p>
                                <input type="text" name="caseCode"/>
                            </li>
                          <!--  <li>
                                <p>文书年份：</p>
                                <input type="text" name="clericalYear"/>
                            </li>
                            <li>
                                <p>文书号：</p>
                                <input type="text" name="clericalCode"/>
                            </li>
                            <li>
                                <p>文书字：</p>
                                <input type="text" name="clericalWord"/>
                            </li>-->
                            <li class="select-time">
                                <p>批准时间：</p>
                                <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginApprovalTime]"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endApprovalTime]"/>
                            </li>
                           <!-- <li>
                                <p>诉讼文书名称：</p>
                                <input type="text" name="litiClericalWord"/>
                            </li>-->
                            <li>
                                <p>办案单位名称：</p>
                                <input type="text" name="caseCompanyName"/>
                            </li>
                            <li>
                                <p>执行人姓名：</p>
                                <input type="text" name="peopleName"/>
                            </li>
                           <!-- <li>
                                <p>执行人身份证：</p>
                                <input type="text" name="peopleCard"/>
                            </li>
                            <li>
                                <p>驾驶证状态：</p>
                                <input type="text" name="driveLicenseState"/>
                            </li>
                            <li>
                                <p>发证机关：</p>
                                <input type="text" name="certifiAuthority"/>
                            </li>
                            <li>
                                <p>状态：</p>
                                <input type="text" name="state"/>
                            </li>-->
                            <li>
                                <p>执行人性别</p>
                                <select name="peopleSex" th:with="type=${@dict.getType('')}">
                                    <option value="">所有</option>
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                                </select>
                            </li>
                            <li>
                                <p>操作人：</p>
                                <input type="text" name="operator"/>
                            </li>
                            <li class="select-time">
                                <p>操作时间：</p>
                                <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginOperationTime]"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endOperationTime]"/>
                            </li>
                            <li>
                                <p>办案单位编码：</p>
                                <input type="text" name="caseCompanyCode"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
             <!--   <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="app:info:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="app:info:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="app:info:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>-->
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="app:info:export">
                    <i class="fa fa-download"></i> 导出
                 </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('app:info:edit')}]];
        var removeFlag = [[${@permission.hasPermi('app:info:remove')}]];
        var prefix = ctx + "pc/info";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "案件信息",
                columns: [{
                    checkbox: true
                },
                {
                    field : 'id', 
                    title : 'ID',
                    visible: false
                },
                {
                    field : 'caseCode', 
                    title : '案件编号'
                },
                {
                    field : 'clericalYear', 
                    title : '文书年份'
                },
                {
                    field : 'clericalCode', 
                    title : '文书号'
                },
                {
                    field : 'clericalWord', 
                    title : '文书字'
                },
                {
                    field : 'approvalTime', 
                    title : '批准时间'
                },
                {
                    field : 'litiClericalWord', 
                    title : '诉讼文书名称'
                },
                {
                    field : 'caseCompanyName', 
                    title : '办案单位名称'
                },
                {
                    field : 'peopleName', 
                    title : '执行人姓名'
                },
                {
                    field : 'peopleCard', 
                    title : '执行人身份证'
                },
                {
                    field : 'driveLicenseState', 
                    title : '驾驶证状态'
                },
                {
                    field : 'certifiAuthority', 
                    title : '发证机关'
                },
                {
                    field : 'state', 
                    title : '状态'
                },
                {
                    field : 'peopleSex', 
                    title : '性别',
                    formatter: function(value){
                        if(value==1){
                            return '男'
                        }else{
                            return '女'
                        }
                    }
                },
              /*  {
                    field : 'operator', 
                    title : '操作人'
                },
                {
                    field : 'operationTime', 
                    title : '操作时间'
                },*/
                {
                    field : 'caseCompanyCode', 
                    title : '办案单位编码'
                }/*,
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }*/]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>